package com.naiterui.ehp.bs.cms.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.cms.common.vo.PageParamsVO;
import com.naiterui.ehp.bs.cms.common.vo.PageVO;
import com.naiterui.ehp.bs.cms.modules.sys.entity.Role;
import java.util.List;
import java.util.Map;

/**
 * 角色
 */
public interface IRoleService extends IService<Role> {

  PageVO<Role> queryPage(PageParamsVO pageParamsVO, Role role);

  Role getRoleInfo(Long roleId);

  void update(Role role);

  void deleteBatch(Long[] roleIds);

  List<Role> selectBatchIds(List<Long> roleIdList);

  void checkRole(Long deptId, List<Long> roleIdList) throws BusinessException;

  Map<Long, List<Role>> getSelect();

}
